package common

import akka.http.scaladsl.model.HttpCharsets.`UTF-8`
import akka.http.scaladsl.model.MediaType

trait CustomMediaTypes {

  val `text/vnd.yaml`: MediaType.WithFixedCharset =
    MediaType.customWithFixedCharset("text", "vnd.yaml", `UTF-8`)

  val `text/json`: MediaType.WithFixedCharset =
    MediaType.customWithFixedCharset("text", "json", `UTF-8`)
}
